#ifndef MY_DOUBLE_H
#define MY_DOUBLE_H

#include <QWidget>
#include <QGroupBox>
#include "my_label.h"
#include <QHBoxLayout>
#include "common.h"

class My_double : public QGroupBox
{
    Q_OBJECT
public:
    explicit My_double(const QString &title, const QString &name_l, const QString &name_r, QWidget *parent = nullptr);
    void setNum(double n1, double n2);
    void setText(const QString &t1, const QString &t2);
private:
    My_label* left;
    My_label* right;
    QHBoxLayout* layout;
};

#endif // MY_DOUBLE_H
